package org.dx.oho.book.one.interceptor;

import org.dx.oho.book.one.proxy.jdk.HelloWorld;
import org.dx.oho.book.one.proxy.jdk.HelloWorldImpl;

/**
 * create by duanx 2021/5/25
 *@description： todo
 *@classname: InterceptorTest
 *@author: duanx
 *@date: 2021/5/25 0:14
 **/
public class InterceptorTest {
    public static void main(String[] args) {
        //代理对象
        HelloWorld helloWorld = (HelloWorld) InterceptorJdkProxy.bind(new HelloWorldImpl(),"org.dx.oho.book.interceptor.MyInterceptor");
        helloWorld.sayHello("李三");
    }
}
